package com.yhsimon.realm.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yhsimon.realm.member.entity.article.ArticleEntity;
import com.yhsimon.realm.member.utils.R;
import com.yhsimon.realm.member.vo.article.ArticleVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author 19819
 * @description 针对表【ums_question(问题信息表)】的数据库操作Service
 * @createDate 2024-04-27 20:55:28
 */
public interface ArticleService extends IService<ArticleEntity> {

    List<ArticleVo> listArticleByUserId(Long userId);

    R listArticleById(Long id, String userId);

    boolean existsArticle(Long id);

    List<ArticleVo> listArticleAll();

    void likeArticle(String id, String userId);

    List<ArticleVo> listArticleDraftByUserId(Long userId);
}
